package gluck.lexico;
public class Yytoken {
  public int m_index;
  public String m_text;
  public int m_line;
  public int m_column;

    
  Yytoken (Token token, String text, int line, int column) {
	     this(token.getValue(),text, line, column);
	  }

  Yytoken (int index, String text, int line, int column) {
	     m_index= index;
	     m_text = text;
	     m_line = line+1;
	     m_column= column+1;
	     
 }
  
  public String toString() {
    return "Text   : "+m_text+
           "\nindex : "+m_index+
           "\nline  : "+m_line+
           "\ncolumn: "+m_column;
  }
}

